package com.yj.springbootstudy.config;

import org.springframework.beans.factory.FactoryBean;

public class CherryFactory implements FactoryBean<Cherry> {
    @Override
    public Cherry getObject() throws Exception {
        return new Cherry();
    }

    @Override
    public Class<?> getObjectType() {
        return Cherry.class;
    }

    @Override
    public boolean isSingleton() {
        return true;
    }
}
